		<div id="main-content">
            <?php
                $content = '<h2>Nici un contact</h2>';
                if ($documents) {
                    $content = '';
                    foreach($documents as $document) {
                        $content .= '<a href='. base_url() .'admin/documente/form/' . $document['doc_id'].' style=":hover {cursor:hand;} font-size:medium;">';
                        $content .=                   '<div class="list-entry-content">';
                        $content .=                        '<div class="list-entry-content-group">';
                        $content .=                             '<div class="list-entry-content-group-left" style="font-size:medium;">' . 'Denumire:' . '</div>';
                        $content .=                             '<div class="list-entry-content-group-right" style="font-size:medium;">' . ($document['doc_name']) . '</div>';
                        $content .=                        '</div>';
                        $content .=                        '<div class="list-entry-content-group">';
                        $content .=                             '<div class="list-entry-content-group-left" style="font-size:medium;">' . 'Descriere:' . '</div>';
                        $content .=                             '<div class="list-entry-content-group-right" style="font-size:medium;">' . ($document['doc_description']) . '</div>';
                        $content .=                        '</div>';
                        $content .=                        '<div class="list-entry-content-group">';
                        $content .=                             '<div class="list-entry-content-group-left" style="font-size:medium;">' . 'Societate:' . '</div>';
                        $content .=                             '<div class="list-entry-content-group-right" style="font-size:medium;">' . ($document['owner']!=FALSE?$document['owner']['cnt_firstname']:'') . '</div>';
                        $content .=                        '</div>';
                        $content .=                        '<div class="list-entry-content-group">';
                        $content .=                            '<div class="list-entry-content-group-left" style="font-size:medium;">' . 'CIF:' . '</div>';
                        $content .=                            '<div class="list-entry-content-group-right" style="font-size:medium;">' . ($document['owner']!=FALSE?$document['owner']['cnt_regid']:'') . '</div>';
                        $content .=                        '</div>';
                        $content .=                        '<div class="list-entry-content-group">';
                        $content .=                             '<div class="list-entry-content-group-left" style="font-size:medium;">' . 'RC:' . '</div>';
                        $content .=                             '<div class="list-entry-content-group-right" style="font-size:medium;">' . ($document['owner']!=FALSE?$document['owner']['cnt_traderegid']:'') . '</div>';
                        $content .=                        '</div>';
                        $content .=                   '</div>';
                        $content .= '</a>';
                    }
                }
                echo $content;
            ?>			
		</div>
		
		<div class="clear"><?php echo '<p style="text-align:center;">' . $links . '</p>'; ?></div>
	</div>

</body>

</html>
